package com.lusang.basic.util;


import lombok.Data;

@Data
public class AjaxResult {
    private boolean success = true;
    private String  message = "666！";
    private Object result;
    public static AjaxResult me(){
        return new AjaxResult();
    }
    public AjaxResult setSuccess(boolean success) {
        this.success = success;
        return this;
    }
    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }
    public AjaxResult setResult(Object result) {
        this.result = result;
        return this;
    }
}
